package com.crm.system.domain;

import java.util.Date;

import com.crm.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.crm.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 医嘱对象 bie_advice
 * 
 * @author lifei
 * @date 2021-05-10
 */
public class BieAdvice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 医嘱编号 */
    private String adviceId;

    /** 问诊编号 */
    @Excel(name = "问诊编号")
    private String inquiryId;

    /** 医生编号 */
    @Excel(name = "医生编号")
    private String doctorId;

    /** 医嘱标题 */
    @Excel(name = "医嘱标题")
    private String adviceTitle;

    /** 医嘱详情 */
    @Excel(name = "医嘱详情")
    private String diagonsis;

    /** 医嘱开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "医嘱开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 医嘱终止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "医嘱终止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setAdviceId(String adviceId) 
    {
        this.adviceId = adviceId;
    }

    public String getAdviceId() 
    {
        return adviceId;
    }
    public void setInquiryId(String inquiryId) 
    {
        this.inquiryId = inquiryId;
    }

    public String getInquiryId() 
    {
        return inquiryId;
    }
    public void setDoctorId(String doctorId) 
    {
        this.doctorId = doctorId;
    }

    public String getDoctorId() 
    {
        return doctorId;
    }
    public void setAdviceTitle(String adviceTitle) 
    {
        this.adviceTitle = adviceTitle;
    }

    public String getAdviceTitle() 
    {
        return adviceTitle;
    }
    public void setDiagonsis(String diagonsis) 
    {
        this.diagonsis = diagonsis;
    }

    public String getDiagonsis() 
    {
        return diagonsis;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("adviceId", getAdviceId())
            .append("inquiryId", getInquiryId())
            .append("doctorId", getDoctorId())
            .append("adviceTitle", getAdviceTitle())
            .append("diagonsis", getDiagonsis())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
